package com.learn.springcloud.feignextendfeatureparent.service;

import com.learn.springcloud.feignextendfeatureparent.bean.User;
import org.springframework.web.bind.annotation.*;

/**
 * @Time : 2018/8/9 11:39
 * @Version : 1.0
 */
public interface HelloService {

    @RequestMapping(name = "/feign/extend/feature/consumer/hello4", method = RequestMethod.GET)
    String hello(@RequestParam(name = "name") String name);

    @RequestMapping(name = "/feign/extend/feature/consumer/hello5", method = RequestMethod.GET)
    User hello(@RequestHeader(name = "name") String name, @RequestHeader(name = "age") Integer age);

    @RequestMapping(name = "/feign/extend/feature/consumer/hello6", method = RequestMethod.POST)
    String hello(@RequestBody User user);
}
